package com.itchen.dao;

import com.itchen.pojo.Brand;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BrandDao {

    void insert(Brand brand);

    void delByIdAfter(int id);

    void update(Brand brand);

    List<Brand> selectAll();

    void delarray(@Param("ids") int[] ids);

    List<Brand> selectByPage(@Param("index") int index, @Param("page") int page);

    int selectCount();

    List<Brand> selectByPageAndcond(@Param("index") int index, @Param("page") int page, @Param("brand") Brand brand);

    int selectCountAndcond(Brand brand);


}
